/*
 * @Author: your name
 * @Date: 2022-01-11 14:16:53
 * @LastEditTime: 2022-01-19 09:45:48
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \xy-web-xiaoxi\src\api\rs\technique.js
 */

import request from '@/utils/request'

/**
 * @description: 获取生产工艺
 * @param {*}
 * @return {*}
 */
export function getTechnique(data) {
  return request({
    url: '/api/xd/technique/get',
    method: 'post',
    data
  })
}

/**
 * @description: 删除生产工艺
 * @param {*}
 * @return {*}
 */
export function deleteTechnique(data) {
  return request({
    url: '/api/xd/technique/delete',
    method: 'post',
    data
  })
}
/**
 * @description: 获取生产工艺分页
 * @param {*}
 * @return {*}
 */
export function pageTechnique(data) {
  return request({
    url: '/api/xd/technique/page',
    method: 'post',
    data
  })
}

/**
 * @description: 新增生产工艺
 * @param {*}
 * @return {*}
 */
export function saveTechnique(data) {
  return request({
    url: '/api/xd/technique/save',
    method: 'post',
    data
  })
}

/**
 * @description: 更新生产工艺
 * @param {*}
 * @return {*}
 */
export function updateTechnique(data) {
  return request({
    url: '/api/xd/technique/update',
    method: 'post',
    data
  })
}

/**
 * @description: 更新生产工艺
 * @param {*}
 * @return {*}
 */
export function techniqueListPreOptions(data) {
  return request({
    url: '/api/xd/technique/list_pre_options',
    method: 'get'
  })
}

/**
 * @description: 复制生产工艺
 * @param {*}
 * @return {*}
 */
export function copyTechnique(data) {
  return request({
    url: '/api/xd/technique/copy',
    method: 'post',
    data
  })
}
